﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using YFIN.View.ViewModels;

namespace YFIN.View.NewsAndCourse
{
    public partial class CourseView : UserControl
    {
        CourseVM _cvm;
        public CourseView()
        {
            InitializeComponent();
            _cvm = new CourseVM();
            this.DataContext = _cvm;
        }
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            _cvm.ShowMedia(((Button)sender).DataContext);
        }
    }
}
